package store.lunangangster.engine.impl.query;

import java.util.List;
import store.lunangangster.engine.impl.cmd.CommandExecutor;
import store.lunangangster.engine.impl.entity.ExecutionEntity;
import store.lunangangster.engine.impl.interceptor.CommandContext;

public class ExecutionQueryImpl extends AbstractQuery<ExecutionQuery, ExecutionEntity> implements ExecutionQuery {

  public ExecutionQueryImpl(CommandExecutor executor) {
    super(executor);
  }

  @Override
  protected List<ExecutionEntity> queryList(CommandContext commandContext) {
    return commandContext.getProcessEngineConfiguration().getExecutionEntityManager().selectExecutionByCondition(this);
  }

  @Override
  protected Page<ExecutionEntity> queryPage(CommandContext commandContext) {
    return null;
  }

  @Override
  protected int queryCount(CommandContext commandContext) {
    return 0;
  }
}
